<?php echo js("js/kindeditor/kindeditor.js"); ?>
<?php echo js("js/kindeditor/lang/zh_CN.js"); ?>
<script>
    KindEditor.ready(function (K) {
        editor = K.create('#content', {
            resizeType: 0,
            allowImageRemote: true,
            width: '700px',
            height: '300px',
            afterBlur: function () {
                this.sync();
            }//需要添加的
        });
    });
</script>
<div class="Breadcrumb">
    <div class="Breadcrumb-i">您当前所在的位置：<span><a href="<?php echo base_url($this->_site_path . '/goods'); ?>">商品表</a></span>&nbsp;>&nbsp;<span class="orange"><?php echo isset($goods_data['goods_id']) ? '修改' : '添加'; ?></span> </div>               <div class="Breadcrumb-div">
        <ul>
            <li class="Breadcrumb-tj"><a href="<?php echo base_url($this->_site_path . '/goods/add'); ?>" >添加</a></li>
            <li class="Breadcrumb-lb"><a href="<?php echo base_url($this->_site_path . '/goods'); ?>" >列表</a></li>
        </ul>
    </div>
</div>
<div class="box box-headtitle box-radius">
    <?php get_messagebox(); // 获取提示框 ?>
    <form method="post" enctype="multipart/form-data">

</div>

<div class="control-group">
    <label class="control-label" for="goods_name">商品名称</label>
    <div class="controls">
        <input type="text" name="goods_name" id="goods_name" placeholder="" value="<?php echo isset($goods_data['goods_name']) ? $goods_data['goods_name'] : ''; ?>">
    </div>
</div>

<div class="control-group">
    <label class="control-label" for="goods_image">默认封面图片</label>
    <div class="controls">
        <input type="file" name="goods_image" id="goods_image" style='border:1px solid #555;' />
        <span>&nbsp;长：600&nbsp;x&nbsp;宽：448</span>
    </div>
</div>

<div class="control-group">
    <label class="control-label" for="goods_store_price_interval">商品价格区间</label>
    <div class="controls">
        <input type="text" name="goods_store_price_interval" id="goods_store_price_interval" placeholder="" value="<?php echo isset($goods_data['goods_store_price_interval']) ? $goods_data['goods_store_price_interval'] : ''; ?>">
    </div>
</div>

<div class="control-group">
    <label class="control-label" for="goods_click">商品浏览数</label>
    <div class="controls">
        <input type="text" name="goods_click" id="goods_click" placeholder="" value="<?php echo isset($goods_data['goods_click']) ? $goods_data['goods_click'] : ''; ?>">
    </div>
</div>

<div class="control-group">
    <label class="control-label" for="goods_commend">是否推荐</label>
    <div class="controls">
        <?php echo form_dropdown('goods_commend', array('0' => '否', '1' => '是'), isset($goods_data['goods_commend']) ? $goods_data['goods_commend'] : ''); ?>
    </div>
</div>

<div class="control-group">
    <label class="control-label" for="goods_keywords">商品关键字</label>
    <div class="controls">
        <input type="text" name="goods_keywords" id="goods_keywords" placeholder="" value="<?php echo isset($goods_data['goods_keywords']) ? $goods_data['goods_keywords'] : ''; ?>">
    </div>
</div>

<div class="control-group">
    <label class="control-label" for="goods_description">商品描述</label>
    <div class="controls">
        <textarea name="goods_description" id="goods_description" style="width:700px;"><?php echo isset($goods_data['goods_description']) ? $goods_data['goods_description'] : ''; ?></textarea>
    </div>
</div>

<div class="control-group">
    <label class="control-label" for="goods_body">商品详细内容</label>
    <div class="controls">
        <?php //var_dump($goods_data);?>
        <textarea id="content" name="goods_body" style="width:700px;height:300px;"><?php echo isset($goods_data['goods_body']) ? $goods_data['goods_body'] : ""; ?></textarea>
    </div>
</div>

<div class="control-group control-group-submit">
    <button type="submit" class="btn  btn-blue  floa-Left"><?php echo isset($goods_data['goods_id']) ? '修改' : '添加'; ?></button>
    <button type="submit" class="btn  btn-blue">重置</button>
</div>
<input type="hidden" name="is_submit" value="1">
<!--__TOKEN__-->
</form>
</div>